/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class AdjustableDesk {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010110009';
    }

    get categoryName() {
        return '\u5347\u964d\u684c';
    }

    getHeight(params) {
        return command({
            method: 'getHeight',
            methodId: 'pZguffLM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getStatus(params) {
        return command({
            method: 'getStatus',
            methodId: 'pUPQyF8n',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setControl(params) {
        return command({
            method: 'setControl',
            methodId: 'peH3JPBE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setHeight(params) {
        return command({
            method: 'setHeight',
            methodId: 'ppArvt49',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default AdjustableDesk;
